#include <iostream>
#include <math.h>
using namespace std;

int main()

{
   string cadena;

   cout<<"Ingresar palabras"<<endl;
    cin>>cadena;


   while(cadena!="salir")
   {
       cout<<cadena.length()<<endl;
       cin>>cadena;
   }




















    return 1;

}
